package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.mybatisplus.pojo.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface FoodMapper extends BaseMapper<Food> {
    //在mapper层中进行联查
    //这时候还要自己写映射文件
    @Override
    List<Food> selectList(IPage<Food> page, @Param("ew") Wrapper<Food> queryWrapper);
}
